<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
<meta name="google-site-verification" content="wVpJDrEdlzNGAUYTx-Vh7tXZZJObL8_lL_extxKhjJg" />
		<?php
			echo $this->Html->charset('utf-8');
			echo "\n";
                        

			if(!empty($meta_info_for_layout['meta_description'])) {
				echo "\t".$this->Html->meta('description', htmlspecialchars($meta_info_for_layout['meta_description']));
				echo "\n";
			}
			
			if(!empty($meta_info_for_layout['meta_keywords'])) {
				echo "\t".$this->Html->meta('keywords', htmlspecialchars($meta_info_for_layout['meta_keywords']));
				echo "\n";
			}
			
			if(!empty($meta_info_for_layout['canonical'])) {
				echo "\t".'<link rel="canonical" href="'.htmlspecialchars($meta_info_for_layout['canonical']).'" />';
				echo "\n";
			}
		?>
	
		<title><?php
				if(!empty($meta_info_for_layout['head_title'])) {
					echo htmlspecialchars($meta_info_for_layout['head_title']);
				} else {
					echo htmlspecialchars($title_for_layout);
				}
			?></title>
		<?php
			echo $this->Html->css('style_002');
			echo $this->Html->css('style');
			echo $this->Html->css('site.generic');
	
			echo $scripts_for_layout;
		?>
		
		<script type="text/javascript" src="<?php echo SITE_WEBROOT; ?>front_end/jquery/js/jquery-1.6.2.min.js"></script>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>        
    
	</head>
	<body>        
    
    <div class="progress-indicator">
      <img src="/img/icon_loading_75x75.gif" alt="" />
    </div>
  
		<!-- main page start -->
		<div class="page" style=" ">
			<!-- inventory line start -->
			<div class="inventory">
				<!-- inventory menu start -->
				<ul class="inv">
				</ul>
				<!-- inventory menu end -->
			</div>
			<!-- invenotory line end -->
			<div class="header">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td nowrap="nowrap" width="1%">
								<!-- logo start -->
								<div class="logo" style="margin-right: 0; padding-right: 0;">
									<a href="<?php echo SITE_WEBROOT; ?>">
										<img src="<?php echo SITE_WEBROOT; ?>img/logo.png" title="" alt="" />
									</a>
								</div>
								<!-- logo end -->
							</td>
							<td>
								<div class="slogan" style="text-align: left;">
									Безплатен каталог с фирми
								</div>
							</td>
							<td align="right">
								banner here
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<!-- menu start -->
			<div class="top-menu">
				<ul class="menu clearfix">
					<li>
						<?php echo $this->Html->link('Начало', array('admin' => false, 'plugin' => null, 'controller' => 'pages', 'action' => 'home')); ?>
					</li>
					<li>
						<?php echo $this->Html->link('Добави сайт', array('admin' => false, 'plugin' => null, 'controller' => 'listings', 'action' => 'submit')); ?>
					</li>
					<?php if($this->Session->check('Auth.User')){ ?>
					<li>
						<?php echo $this->Html->link('My Dashboard', array('admin' => false, 'plugin' => null, 'controller' => 'users', 'action' => 'index')); ?>
					</li>
					<?php if($this->Session->read('Auth.User.socialLogin') == 0 ) { ?>
					<li>
						<?php echo $this->Html->link('Logout', array('admin' => false, 'plugin' => null, 'controller' => 'users', 'action' => 'logout')); ?>
					</li>
					<?php } else { ?>
					<li>
						<?php echo $this->FacebookLogin->login(); ?>
					</li>
					<?php }
					 } else { ?>
					<li>
						<?php echo $this->Html->link('Login', array('admin' => false, 'plugin' => null, 'controller' => 'users', 'action' => 'login')); ?>
					</li>
					<li>
						<?php echo $this->FacebookLogin->login(); ?>
					</li>
					<?php
					
					 } ?>
				</ul>
                            <div style="width:50%; padding-left:25%">
                           <?php
                            echo $form->create('Listings',array('action' => 'search'));
                            echo $form->input('Listings.search');
                            echo $form->input('Listings.nearby');
                             echo $form->end('Search');
                            ?> 
        
                            <!--table align="center"><tr><td><label for="ListingsSearch">Search For </label></td><td><label for="ListingsNearby">Near</label></td><td></td></tr>
                            <tr><td><input name="data[Listings][search]" type="text" id="ListingsSearch"></td>
                                <td><input name="data[Listings][nearby]" type="text" id="ListingsNearby"></td>
                                <td></td></tr>
                            
                            </table-->

                        </div>
			</div>
			<!-- menu end -->
			<div class="content">
				<table class="main" cellpadding="0" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td class="left-column" valign="top">
								<div id="leftBlocks" class="groupWrapper">
									<!-- dynamic bocks -->
									<div class="box">
										<div class="box-caption-movable">
											Title #1
										</div>
										<div class="box-content-movable">
	
										</div>
									</div>
									<div class="box">
										<div class="box-caption-movable">
											Title #1
										</div>
										<div class="box-content-movable">
<table width="100%" cellspacing="0" cellpadding="1" class="calendar">
    <caption class="calendar-month">November&nbsp;2011</caption>
    <tbody>
        <tr>
            <th abbr="Sunday">Sun</th>
            <th abbr="Monday">Mon</th>
            <th abbr="Tuesday">Tue</th>
            <th abbr="Wednesday">Wed</th>
            <th abbr="Thursday">Thu</th>
            <th abbr="Friday">Fri</th>
            <th abbr="Saturday">Sat</th>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
            <td class="linked-day">1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
            <td>5</td>
        </tr>
        <tr>
            <td>6</td>
            <td>7</td>
            <td>8</td>
            <td>9</td>
            <td>10</td>
            <td>11</td>
            <td>12</td>
        </tr>
        <tr>
            <td>13</td>
            <td>14</td>
            <td>15</td>
            <td>16</td>
            <td>17</td>
            <td>18</td>
            <td>19</td>
        </tr>
        <tr>
            <td>20</td>
            <td>21</td>
            <td>22</td>
            <td>23</td>
            <td>24</td>
            <td>25</td>
            <td>26</td>
        </tr>
        <tr>
            <td>27</td>
            <td>28</td>
            <td>29</td>
            <td>30</td>
            <td colspan="3">&nbsp;</td>
        </tr>
    </tbody>
</table>
										</div>
									</div>
									<div class="box">
										<div class="box-caption-movable">
											Title #2
										</div>
										<div class="box-content-movable">
<table cellspacing="2" cellpadding="2">
    <tbody>
        <tr>
            <td>Активни фирми:</td>
            <td>749</td>
        </tr>
        <tr>
            <td>Категории:</td>
            <td>780</td>
        </tr>
        <tr>
            <td>Чакащи одобрение:</td>
            <td>4</td>
        </tr>
        <tr>
            <td>Общо кликове:</td>
            <td>8435632</td>
        </tr>
        <tr>
            <td>Общо кликове в категориите:</td>
            <td>13585319</td>
        </tr>
    </tbody>
</table>
										</div>
									</div>
									<?php echo $this->element('view_review');?>
									<!-- end dynamic bocks -->
								</div>
							</td>
							<td class="center-column" valign="top">
								<div id="topBlocks" class="groupWrapper">
									<?php echo $this->Session->flash(); ?>
									
									<?php
										if(!empty($navigationBreadcrumbData)) {
											echo $this->element('navigation_breadcrumb', array('navigationBreadcrumbData' => $navigationBreadcrumbData));
										}
									?>
									
									<?php echo $content_for_layout; ?>
								</div>
							</td>
							<td class="right-column" valign="top">
								<div id="rightBlocks" class="groupWrapper">
									<!-- dynamic bocks -->
									<!-- end dynamic bocks -->
								</div>
									<div class="box">
										<div class="box-caption-movable">
											Title #1
										</div>
										<div class="box-content-movable">
											<?php echo $this->Html->link('<img src="'.SITE_WEBROOT.'img/sticker.jpg" border="0" />', array('admin' => false, 'plugin' => null, 'controller' => 'listings', 'action' => 'submit'), array('escape' => false, 'id' => 'submit_free_button')); ?>
										</div>
									</div>
                                                                        <div id="map-canvas" class="box">
                                                                        </div>
                                                            <?php if (("LISTING_TYPE" == $data[0]) && (!empty($listing))) {?>
                                                            Address: <input type="text" id="address"/>
                                                            <select id="mode">
                                                                <option value="DRIVING">Driving</option>
                                                                <option value="WALKING">Walking</option>
                                                                <option value="BICYCLING">Bicycling</option>
                                                                <option value="TRANSIT">Transit</option>
                                                              </select>
                                                            <input type="button" value="Get Directions" onclick="GetDirections();"/>
                                                            <div id="panel"  >
                                                                
                                                            </div>
                                                            <?php } ?>
                                                            
									<div class="box">
										<div class="box-caption-movable">
											Title #1
										</div>
										<div class="box-content-movable">
th
										</div>
									</div>
									<div class="box">
										<div class="box-caption-movable">
											Title #2
										</div>
										<div class="box-content-movable">
<table width="100%" cellspacing="2" cellpadding="2">
    <tbody>
        <tr>
            <td>Активни потребители:</td>
            <td>3578</td>
        </tr>
        <tr>
            <td>Акаунти:</td>
            <td>9683</td>
        </tr>
        <tr>
            <td>Гости в момента:</td>
            <td>148</td>
        </tr>
        <tr>
            <td>Посещения за последните 24ч:</td>
            <td>3201</td>
        </tr>
        <tr>
            <td rowspan="2"> 													moni_travel94, miro122											</td>
        </tr>
    </tbody>
</table>
										</div>
									</div>
							</td>
						</tr>
					</tbody>
				</table>
				<!-- verybottom block -->
				<div id="verybottomBlocks" class="groupWrapper">
					<!-- dynamic bocks -->
					<!-- end dynamic bocks -->
				</div>
				<!-- verybottom block -->
			</div>
			<!-- content end -->
			<!-- footer start -->
			<div class="footer">
<div id="eXTReMe"><a href="http://extremetracking.com/open?login=sitefocu">
<img src="http://t1.extreme-dm.com/i.gif" style="border: 0;"
height="38" width="41" id="EXim" alt="eXTReMe Tracker" /></a>
<script type="text/javascript"><!--
EXref="";top.document.referrer?EXref=top.document.referrer:EXref=document.referrer;//-->
</script><script type="text/javascript"><!--
var EXlogin='sitefocu' // Login
var EXvsrv='s11' // VServer
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;EXsrc="src";
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXref?EXref=EXref:EXref=EXd.referrer;
EXd.write("<img "+EXsrc+"=http://e2.extreme-dm.com",
"/"+EXvsrv+".g?login="+EXlogin+"&amp;",
"jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
"l="+escape(EXref)+" height=1 width=1>");//-->
</script><noscript><div id="neXTReMe"><img height="1" width="1" alt=""
src="http://e2.extreme-dm.com/s11.g?login=sitefocu&amp;j=n&amp;jv=n" />
</div></noscript></div>
				<?php echo $this->Html->link('Добави фирма безплатно', array('admin' => false, 'plugin' => null, 'controller' => 'listings', 'action' => 'submit')); ?>
				<div class="copyright">
					© 2011 Powered by 
				</div>
			</div>
			<!-- footer end -->
		</div>
		<!-- main page end -->
       
	</body>
</html>